package com.cloud.schedule.api.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.cloud.schedule.api.service.ScheduleGroupService;
import com.cloud.schedule.common.result.Quokka;

@RestController
@RequestMapping("/schedule/group/")
public class ScheduleGroupController {
	@Autowired
	private ScheduleGroupService scheduleGroupService;
	
	public Quokka list(){
		return new Quokka(true, scheduleGroupService.list());
	}
}
